package com.baizhi.dao;

import com.baizhi.entity.User;
import com.baizhi.entity.UserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDAO {
    List<User> selectAll();
    User selectByPrimaryKey(Integer userId);
    void updateStatus(User record);
    void addMany(@Param("users") List<User> users);
    List<User> selectCount();
    List<UserQuery> selectQuery();
    User selectCountDate(Integer count);
    List<Map> selectCountDate1();

    int deleteByPrimaryKey(Integer userId);
    int insert(User record);
    int insertSelective(User record);
    int updateByPrimaryKey(User record);
}